package com.it01;

import java.util.*;

public class TestList{
	public static void main(String args[]){ 
		List list = new ArrayList();
		list.add("Hello"); 
		list.add("World");
		list.add(1, "Learn");
		list.add(1, "Java"); 
		printList(list);
		}
		public static void printList(List list){
		//1
		for(int i=0;i<list.size();i++){
			System.out.println(list.get(i));
            System.out.println("测试码云");
		}
}
}
